package org.sakai.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName minio_user
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MinioUser {
    /**
     * 
     */
    private String id;

    /**
     * 
     */
    private Boolean isVip;

    /**
     * 
     */
    private Integer maxsize;

    /**
     * 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 
     */
    public Boolean getVip() {
        return isVip;
    }

    /**
     * 
     */
    public void setIsVip(Boolean isVip) {
        this.isVip = isVip;
    }

    /**
     * 
     */
    public Integer getMaxsize() {
        return maxsize;
    }

    /**
     * 
     */
    public void setMaxsize(Integer maxsize) {
        this.maxsize = maxsize;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MinioUser other = (MinioUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getVip() == null ? other.getVip() == null : this.getVip().equals(other.getVip()))
            && (this.getMaxsize() == null ? other.getMaxsize() == null : this.getMaxsize().equals(other.getMaxsize()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getVip() == null) ? 0 : getVip().hashCode());
        result = prime * result + ((getMaxsize() == null) ? 0 : getMaxsize().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", isVip=").append(isVip);
        sb.append(", maxsize=").append(maxsize);
        sb.append("]");
        return sb.toString();
    }
}